package com.example.taximeter.mapper;

import com.example.taximeter.bean.Search;
import com.example.taximeter.bean.UpdateRecord;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.SelectProvider;

import java.util.List;

@Mapper
public interface UpdateRecordMapper {


    //查询升级文件列表
    @SelectProvider(type = ActivityMapperProvider.class, method = "findUpdateRecordAll")
    @Results({
            @Result(property = "carno", column = "car_no"),
            @Result(property = "version", column = "version"),
            @Result(property = "starttime", column = "start_time"),
            @Result(property = "endtime", column = "end_time"),
            @Result(property = "usetimes", column = "use_times")
    })
    List<UpdateRecord> findUpdateRecordAll(UpdateRecord updateRecord);
}
